package come.tool.JDialog;

import org.come.Frame.PetSkillsJframe;
import org.come.Jpanel.PetSkillsJpanel;
import org.come.socket.Agreement;
import org.come.socket.SendMessageUntil;
import org.come.until.UserMessUntil;

public class DeleteQlSkillJDialog implements TiShiChuLi {
   @Override
   public void tipBox(boolean tishi, Object object) {
      int type = (Integer)object;
      if (tishi) {
         PetSkillsJpanel petSkillsJpanel = PetSkillsJframe.getPetSkillsJframe().getPetSkillsJpanel();
         String sendmes = Agreement.getAgreement().userpetAgreement("PS|" + UserMessUntil.getChosePetMes().getSid() + "|" + petSkillsJpanel.getPetskillID() + "|1");
         SendMessageUntil.toServer(sendmes);
         petSkillsJpanel.setPetskillID("");
         petSkillsJpanel.getQlPetskills()[petSkillsJpanel.getPetskillNO()].setIcon(null);
         petSkillsJpanel.getShowQlPetSkills()[petSkillsJpanel.getPetskillNO()].setSkill(null);
         PetSkillsJframe.getPetSkillsJframe().getPetSkillsJpanel().getBox().setText(null);
      }

   }
}
